<!doctype html>
<html class="no-js">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Amaze UI Admin index Examples</title>
    <meta name="description" content="这是一个 index 页面">
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="icon" type="image/png" href="__IMG__/favicon.png">
    <link rel="apple-touch-icon-precomposed" href="__IMG__/app-icon72x72@2x.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI" />
    <link rel="stylesheet" href="{$Think.const.COMMON_URL}/Css/amazeui.min.css"/>
    <link rel="stylesheet" href="__CSS__/admin.css">
</head>
<body>
<!-- content start -->
<style type="text/css">
    .am-pagination {
        display:inline-block;
    }
    .am-padding-left {
        text-align: center;
    }
</style>
<div class="admin-content">
    <div class="admin-content-body">
        <div class="am-cf am-padding am-padding-bottom-0">
            <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">微信菜单管理</strong></div>
        </div>

        <hr>

        <div class="am-g">
            <div class="am-u-sm-12 am-u-md-6">
                <div class="am-btn-toolbar">
                    <div class="am-btn-group am-btn-group-xs">
                        <a href="{:U('Wxmenu/add')}" class="am-btn am-btn-default" target="_self"><span class="am-icon-plus"></span> 新增</a>
                        <button type="button" class="am-btn am-btn-default"><span class="am-icon-trash-o"></span> 删除</button>
                        <a href="{:U('Wxmenu/sendToWXServer')}" class="am-btn am-btn-primary"><span class="am-icon-trash-o"></span>创建菜单微信平台</a>
                        <button type="button" class="am-btn am-btn-danger"><span class="am-icon-trash-o"></span>删除菜单从微信平台</button>
                    </div>
                </div>
            </div>

        </div>

        <div class="am-g">
            <div class="am-u-sm-12">
                <form class="am-form">
                    <table class="am-table am-table-striped am-table-hover table-main">
                        <thead>
                        <tr>
                            <th class="table-check"><input type="checkbox" />全选</th><th class="table-title">菜单名称</th><th class="table-type">关键词</th><th class="table-date am-hide-sm-only">外链URL</th><th>排序</th><th>是否是主菜单</th><th class="table-set">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                            <volist name="list" id="vo">
                                <tr>
                                    <td><input type="checkbox" /></td>
                                    <td><a href="#">{$vo.name}</a></td>
                                    <td>{$vo.menukey}</td>
                                    <td class="am-hide-sm-only">{$vo.url}</td>
                                    <td class="am-hide-sm-only">{$vo.sort}</td>
                                    <td>{$vo['pid'] == 0?"是":"否"}</td>
                                    <td>
                                        <div class="am-btn-toolbar">
                                            <div class="am-btn-group am-btn-group-xs">
                                                <a class="am-btn am-btn-default am-btn-xs am-text-secondary" href="{:U('Admin/Wxmenu/edit',array('id'=>$vo['id']))}"><span class="am-icon-pencil-square-o"></span> 编辑</a>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </volist>
                        </tbody>
                    </table>
                    <center>
                        共 15 条记录
                        <ul class="am-pagination">
                            <li class="am-disabled"><a href="#">«</a></li>
                            <li class="am-active"><a href="#">1</a></li>
                            <li><a href="#">2</a></li>
                            <li><a href="#">3</a></li>
                            <li><a href="#">4</a></li>
                            <li><a href="#">5</a></li>
                            <li><a href="#">»</a></li>
                        </ul>
                    </center>
                    <hr />
                </form>
            </div>

        </div>
    </div>

    <footer class="admin-content-footer">
        <hr>
        <p class="am-padding-left">© 2016 版权归郑建强所有.</p>
    </footer>

</div>
<!-- content end -->
</body>
</html>